package com.han.hotelplat.comm;

import java.util.HashMap;
import java.util.Map;


public class Constant {
	public static final String[] whiteList = new String[]
	   {"13760745357",//小寒
		"13126305452",//凯明
		"18685431215",//胡威
		"18825117885",//阿凯
		"13570454036",//阿凯
		"13885376331",//阿凯
		"18588721443",//阿凯
		"13915968546",//阿凯
		"13073293316",//阿凯
		"18588773520",//阿凯
		"13570987654",//阿凯
		"15276798670",//阿凯
		"13528575472"//阿凯
		};

	public static final String SESSION_LOGIN_USER = "SESSION_LOGIN_USER"; // 用户登录
	public static final String CMS_SESSION_USER_PERMISSIONS = "SESSION_USER_PERMISSIONS"; // CMS登录用户的权限列表
	public static final String CMS_SESSION_LOGIN_USER = "CMS_SESSION_LOGIN_USER"; // CMS用户登录
	public static final String SESSION_LOGIN_USER_TOKEN = "SESSION_LOGIN_USER_TOKEN";
	
	// 提示信息
	public static final String RESULT_KEY = "msg";
	public static final String MSG_ERROR_EN = "request failed";
	public static final String MSG_SUCCESS_EN = "request successful";
	public static final String MSG_ERROR_ZH = "请求失败";
	public static final String MSG_SUCCESS_ZH = "请求成功";


	/** 性别3未知，1男，2女*/
	public static final Integer[] SEX = new Integer[] { 3, 1, 2 };//3未知，1男，2女



	public static final String UTF_8 = "UTF-8";
	public static final String ISO_8859_1 = "ISO-8859-1";

	/** 在职 */
	public static final int SYSTEM_USER_STATE_WORKING = 1; // 在职
	/** 离职 */
	public static final int SYSTEM_USER_STATE_DIMISSION = 0; // 离职
	/** 手机登陆动态验证码 */
	public static final String CACHE_PHONE_VCODE_LOGIN_EM = "phonevcodeloginem";
	/** 手机登陆动态验证码 */
	public static final String CACHE_PHONE_VCODE_LOGIN_HM = "phonevcodeloginhm";
	/** 手机设置支付密码验证码 */
	public static final String CACHE_PHONE_VCODE_PAYPASSWORD = "phonevcodepaypassword";
	
	/** 手机设置帮工登陆密码验证码 */
	public static final String CACHE_PHONE_VCODE_EM_PASSWORD = "phonevcodepasswordem";
	
	/** 手机设置管家登陆密码验证码 */
	public static final String CACHE_PHONE_VCODE_HM_PASSWORD = "phonevcodepasswordhm";
	
	/** 绑定银行卡手机验证码*/
	public static final String CACHE_PHONE_VCODE_BINDBANKCARD = "phonevcodebankcardem";
	
	/** 帮工提现超额验证*/
	public static final String CACHE_PHONE_VCODE_EXCASH = "phonevcodeexcash";
	
	/** 换绑手机登态验证码 */
	public static final String CACHE_PHONE_VCODE_CHANGETEL = "phonevcodechangetel";
	
	
	/** 用户类型 1帮工*/
	public static final Integer USER_TYPE_EMPLOYEE = 1;
	/** 用户类型 2酒店管家*/
	public static final Integer USER_TYPE_HOTELMANAGER = 2;
	/** 用户类型 3平台*/
	public static final Integer USER_TYPE_PLATFORM = 3;
	
	/** 用户状态 创建/待审核*/
	public static final Integer USER_STATE_CREAT = 1;//创建/待审核
	/** 用户状态 审核通过*/
	public static final Integer USER_STATE_PASS = 2;//审核通过
	/** 用户状态 审核未通过*/
	public static final Integer USER_STATE_NO_PASS = 3;//审核未通过
	/** 用户状态 冻结*/
	public static final Integer USER_STATE_FREEZE = 4;//冻结
	
	/**酒店类型 5星*/
	public static final Integer HOTEL_TYPE_I = 1;//其他
	/**酒店类型 4星*/
	public static final Integer HOTEL_TYPE_II = 2;//连锁酒店
	/**酒店类型 3星*/
	public static final Integer HOTEL_TYPE_III = 3;//三星级
	/**酒店类型 连锁酒店*/
	public static final Integer HOTEL_TYPE_IV = 4;//四星级
	/**酒店类型 其他*/
	public static final Integer HOTEL_TYPE_V = 5;//五星级
	
	/**酒店状态 等待审核*/
	public static final Integer HOTEL_STATE_WAITAUTH = 1;
	/**酒店状态 审核通过*/
	public static final Integer HOTEL_STATE_PASS = 2;
	/**酒店状态 审核不通过*/
	public static final Integer HOTEL_STATE_NOPASS = 3;
	/**酒店状态 下架*/
	public static final Integer HOTEL_STATE_STOP = 4;
	
	/**用户钱包*/
	public static final String USERWALLET = "user_wallet";
	/** 平台钱包id 1*/
	public static final Integer WALLET_ID = 1;
	
	/**钱包用户类型 酒店*/
	public static final Integer WALLET_USER_TYPE_HOTEL = 1;
	/**钱包用户类型 帮工*/
	public static final Integer WALLET_USER_TYPE_EM = 2;
	/**钱包用户类型 平台*/
	public static final Integer WALLET_USER_TYPE_PLATFORM = 3;
	
	/**钱包状态 1未激活*/
	public static final Integer WALLET_STATE_NOTACTIVE = 1;
	/**钱包状态 2已激活*/
	public static final Integer WALLET_STATE_ACTIVE = 2;
	
	public static Map<Integer, String>stateExpMap = new HashMap<Integer, String>();
	
	/**图片保存路径 根目录*/
	public static final String IMG_SAVE_BASEPATH = "/imgs";
	
	/**酒店图片保存路径 根目录*/
	public static final String IMG_SAVE_HOTELPATH = IMG_SAVE_BASEPATH + "/hotel";
	
	/**酒店图片保存路径 营业执照*/
	public static final String IMG_SAVE_HOTELLICENSEPATH = IMG_SAVE_HOTELPATH + "/licensepic";
	
	/**酒店图片保存路径 房间*/
	public static final String IMG_SAVE_HOTELROOMPATH = IMG_SAVE_HOTELPATH + "/room";
	
	/**账单类型  1任务类型*/
	public static final Integer BILL_TYPE_TASK = 1;
	/**账单类型  2系统操作*/
	public static final Integer BILL_TYPE_RECHARGE = 2;
	/**账单类型  3提现类型*/
	public static final Integer BILL_TYPE_CASH = 3;
	
	/**任务状态  7已结束*/
	public static final Integer TASK_STATE_STOP = 7;//已停止
	/**任务状态  6已结束*/
	public static final Integer TASK_STATE_END = 6;//已结束
	/**任务状态  5已服务*/
	public static final Integer TASK_STATE_HASSERVICE = 5;//已服务
	/**任务状态  4服务中*/
	public static final Integer TASK_STATE_INSERVICE = 4;//服务中
	/**任务状态  3已取消*/
	public static final Integer TASK_STATE_CANCER = 3;//已取消
	/**任务状态 2待服务中*/
	public static final Integer TASK_STATE_WAITSERVICE = 2;
	/**任务状态 1发布中*/
	public static final Integer TASK_STATE_CREAT = 1;
	
	/**考勤状态 1待提交*/
	public static final int ATTENDANCE_NO_SUBMIMT = 1;//未提交
	/**考勤状态 2待确认*/
	public static final int ATTENDANCE_SUBMIMT = 2;//已提交
	/**考勤状态3已确认*/
	public static final int ATTENDANCE_HASAUTH = 3;//已确认
	/**考勤状态4已结算*/
	public static final int ATTENDANCE_END = 4;//已结算
	/**考勤状态5已失效*/
	public static final int ATTENDANCE_INVALID = 5;//已失效
	
	/**账单交易渠道1平台转账*/
	public static final Integer CHARGE_CHANNEL_TRANSFER = 1;
	/**账单交易渠道2微信转账*/
	public static final Integer CHARGE_CHANNEL_WX = 2;
	/**账单交易渠道3支付宝转账*/
	public static final Integer CHARGE_CHANNEL_ZFB = 3;
	/**账单交易渠道4线下转账*/
	public static final Integer CHARGE_CHANNEL_XX = 4;

	/**设置密码验证验证码结果 1通过*/
	public static final Integer VERIFYVCODE_PASS = 1;
	/**设置密码验证验证码结果 2不通过*/
	public static final Integer VERIFYVCODE_NOPASS = 2;

	/**超过当天几点不能发布第二天的任务*/
	public static final int TASK_TIMEOUT = 12;

	/**客户端类型酒店*/
	public static final Integer APP_TYPE_HOTEL = 1;
	
	/**客户端类型帮工*/
	public static final Integer APP_TYPE_EM = 2;

	/**月最大提现额度*/
	public static final float MAX_EX_CASH = 40000;

	/**无需短信验证的最大可提现金额***/
	public static final float MAX_CASHMONEY_NOSMS = 40000;
	
	
	/**提现状态 1提现待审核***/
	public static final Integer CE_STATE_CREAT = 1;
	/**提现状态 2提现通过审核***/
	public static final Integer CE_STATE_PASS = 2;
	/**提现状态 3提现驳回***/
	public static final Integer CE_STATE_NOPASS = 3;
	/**提现状态 4提现成功***/
	public static final Integer CE_STATE_SUCCESS = 4;
	/**提现状态 5提现待查询***/
	public static final Integer CE_STATE_WAIT_QUERY = 5;
	/**提现状态 6提现失败***/
	public static final Integer CE_STATE_FAIL = 6;

	
	/**日志模块*******************/
	public static class logger {
		/****************任务相关************************/
		public static final Integer LOG_TASK_PUBLIC = 1001;//发布任务
		public static final Integer LOG_TASK_ADDEM = 1002;//添加帮工
		public static final Integer LOG_TASK_CANCE = 1003;//取消任务
		public static final Integer LOG_TASK_STOP = 1004;//终止任务
		public static final Integer LOG_TASK_EXPORT = 1005;//导出任务
		public static final Integer LOG_TASK_SHOWAPP = 1006;//后台发布的任务设置为前端可见
		public static final Integer LOG_TASK_EDIT = 1007;//修改任务
		public static final Integer LOG_TASK_SUBMITREMARK = 1008;//修改任务备注
		public static final Integer LOG_TASK_FINISH = 1009;//酒店确认任务已经完成
		
		/****************帮工相关************************/
		public static final Integer LOG_EM_EDIT=2001;//修改帮工
		public static final Integer LOG_EM_ADD=2002;//新增帮工
		public static final Integer LOG_EM_AUTH=2003;//审核帮工
		public static final Integer LOG_EM_EXPORT=2004;//导出帮工
		
		/****************酒店相关************************/
		public static final Integer LOG_HOTEL_ADD = 3001;//新增酒店
		public static final Integer LOG_HOTEL_EDIT = 3002;//修改酒店资料
		public static final Integer LOG_HOTEL_AUTH = 3003;//审核资料
		public static final Integer LOG_HOTEL_EXPORT = 3004;//导出资料
		
	}

	public static String IMG_PATH="uploadImg";
	/**通联证书地址*/
	public static String pfxPath = "config"+java.io.File.separator+"20058100001425304.p12";
	public static String cerPath = "config"+java.io.File.separator+"20058100001425304.cre";
	public static String tltcerPath= "config"+java.io.File.separator+"allinpay-pds.cer";
	public static String acctNo= "200581000014253000";
	
	public static int APP_SHOW_OPEN=1;//客户端可见
	public static int APP_SHOW_CLOSE=2;//不可见
	
	public static Map<Integer, String> bandMap;
	public static Map<String, String> cityCodeMap;
	public static Map<String, String> cityNameMap;
	
	public static Map<String, String> holidayMap;

	public static int isRuning = 0;
	
	public static boolean CashExtract=true;//是否开放提现
	
}
